//! Copyright 2012 NTH Technology, Inc.
//! All rights reserved
//!
#ifndef __Config_h__
#define __Config_h__

#include "BasicTypes.h"
#include "BoardHardware.h"

//!
class cConfig
{
public:
    // config for System tick module
    static const U32 SYSTEM_TICK_INTERRUPT = 1000;      //tick interrupt is 1ms


    // config for Led module
    static const U32 LED_REV_TIME = 500;                // toggle led every 500ms


    // config for Ethernet module
    static const U8 DEFAULT_MAC_ADDR_0 = 0x00;
    static const U8 DEFAULT_MAC_ADDR_1 = 0x04;
    static const U8 DEFAULT_MAC_ADDR_2 = 0xA3;
    static const U8 DEFAULT_MAC_ADDR_3 = 'T';
    static const U8 DEFAULT_MAC_ADDR_4 = 'h';
    static const U8 DEFAULT_MAC_ADDR_5 = 0x16;

    static const U8  DEFAULT_IP_ADDR_0 = 192;
    static const U8  DEFAULT_IP_ADDR_1 = 168;
    static const U8  DEFAULT_IP_ADDR_2 = 0;
    static const U8  DEFAULT_IP_ADDR_3 = 216;

    static const U16 DEFAULT_UDP_PORT  = 6789;
};

#endif // __Config_h__
